//
//  GiftCollectionReusableView.m
//  礼物说
//
//  Created by dllo on 16/5/3.
//  Copyright © 2016年 sunzhichao. All rights reserved.
//

#import "GiftCollectionReusableView.h"

@interface GiftCollectionReusableView ()

@property (nonatomic, retain) UILabel *lable;

@end

@implementation GiftCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}
- (void)dealloc {
    [_str release];
    [_lable release];
    [super dealloc];
}

- (void)setStr:(NSString *)str {
    if (_str != str) {
        [_str release];
        _str = [str retain];
        
        _lable.text = _str;
    }
}

- (void)createView {
    self.lable = [[UILabel alloc] init];
    [self addSubview:_lable];
    [_lable release];
    _lable.frame = CGRectMake(0, 0, self.frame.size.width - kWIDTHS(30), self.frame.size.height);
    
    _lable.textAlignment = NSTextAlignmentCenter;
}

@end
